<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:composite="http://java.sun.com/jsf/composite"
	xmlns:p="http://primefaces.org/ui">

<composite:interface>
	<composite:attribute name="activeIndex" />
</composite:interface>

<composite:implementation>
	<p:tabMenu activeIndex="#{cc.attrs.activeIndex}">
		<p:menuitem value="首页" url="/index.jsf" icon="ui-icon-star" />
		<p:menuitem value="信息管理" url="#" icon="ui-icon-star" />
		<p:menuitem value="商品管理" url="#" icon="ui-icon-search" />
		<p:menuitem value="订单管理" url="#" icon="ui-icon-document" />
		<p:menuitem value="财务管理" url="#" icon="ui-icon-person" 
		rendered="#{identity.isExistsInGrantedUrl('/admin/param2.jsf')}"/>
		<p:menuitem value="系统设置" url="/admin/param.jsf" icon="ui-icon-wrench" 
		rendered="#{identity.isExistsInGrantedUrl('/admin/param.jsf')}"/>
	</p:tabMenu>
</composite:implementation>
</html>